package com.yxw.yxnet_cd_center.customer_service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
//import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
//import java.math.BigDecimal;
import java.util.Date;

/**
 * @author liuxin
 * @date 2023.09.13
 */
@Data
@TableName("yx_cs_workflow")
@ApiModel("工作流实体")
public class YxCsWorkflowEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "workflow_id",type = IdType.AUTO)
    @ApiModelProperty(value = "工作流ID")
    private Long id;

    @ApiModelProperty(value = "工作组ID")
    private Long groupId;

    @ApiModelProperty(value = "工作组名称")
    private String groupName;

    @ApiModelProperty(value = "客服ID")
    private Long customId;

    @ApiModelProperty(value = "客服名称")
    private String customName;
    
    @ApiModelProperty(value = "客户ID")    
    private String clientId;
    
    @ApiModelProperty(value = "客户名称")
    private String clientName;
    
    @ApiModelProperty(value = "工单类型:0用户申请,1管理员指派")
    private Integer workflowType;
    
    @ApiModelProperty(value = "接收部门ID")
    private Long receiveDeptId;

    @ApiModelProperty(value = "接收部门名称")
    private String receiveDeptName;

    @ApiModelProperty(value = "处理人ID")
    private Long handelId;

    @ApiModelProperty(value = "处理人名称")
    private String handelName;

    @ApiModelProperty(value = "问题记录ID")
    private Long problemId;

    @ApiModelProperty(value = "处理记录ID")
    private Long handelProId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "解决时间")
    private Date handelTime;

    @ApiModelProperty(value = "问题描述")
    private String description;

    @ApiModelProperty(value = "是否已完成")
    private Integer endFlag;
    /**
    *会话ID
    */
    @ApiModelProperty(value = "会话ID")
    private String sessionId;
    /*
    *处理结果:0失败,1成功
    */
    //@TableField("handel_result")
    @ApiModelProperty(value = "处理结果:0失败,1成功")
    private Integer handelResult;
    /*
    *处理结果描述
    */
    @ApiModelProperty(value = "处理结果描述")
    private String handelResultDescription;
    /*
    *渠道编码
    */
    @ApiModelProperty(value = "渠道编码")
    private String channelCode;
    /*
    *渠道名称
    */
    @ApiModelProperty(value = "渠道名称")
    private String channelName;
    /*
    *端口编码
    */
    @ApiModelProperty(value = "端口编码")
    private String portCode;
    /*
    *端口名称
    */
    @ApiModelProperty(value = "端口名称")
    private String portName;    
}